{% extends 'wsite.html' %}
{% import 'bootstrap/wtf.html' as wtf %}
{% import 'macros/horizontal_form.html' as hform %}

{% block page_name %} add production  {% endblock %}

{% block page_content %}
    <div class="page-header">
        <h4 class="pager-title">add production</h4>
    </div>
    </div>
    <div class="wsite-pager">
        {{ hform.render_horizontal_form(form) }}
        {#        <div class="col-sm-offset-2">#}
        {#            <form class="form-horizontal" action="" method="post">#}
        {#                {{ form.hidden_tag() }}#}
        {#                <div class="form-group">#}
        {#                    {{ form.name.label(class='control-label col-sm-2') }}#}
        {#                    <div class="col-sm-4">#}
        {#                        {{ form.name(class='form-control') }}#}
        {#                    </div>#}
        {#                </div>#}
        {#                <div class="form-group">#}
        {#                    {{ form.pub_time.label(class='control-label col-sm-2') }}#}
        {#                    <div class="col-sm-4">#}
        {#                        {{ form.pub_time(class='form-control') }}#}
        {#                    </div>#}
        {#                </div>#}
        {#                <div class="form-group">#}
        {#                    {{ form.type.label(class='control-label col-sm-2') }}#}
        {#                    <div class="col-sm-4">#}
        {#                        {{ form.type(class='form-control') }}#}
        {#                    </div>#}
        {#                </div>#}
        {#                <div class="form-group">#}
        {#                    {{ form.category.label(class='control-label col-sm-2') }}#}
        {#                    <div class="col-sm-4">#}
        {#                        {{ form.category(class='form-control') }}#}
        {#                    </div>#}
        {#                </div>#}
        {#                <div class="form-group">#}
        {#                    <div class="col-sm-offset-2 col-sm-4">#}
        {#                        {{ form.submit(class='btn btn-primary') }}#}
        {#                        <button class="btn btn-default" type="button" onclick="javascript:history.back(-1)">back</button>#}
        {#                    </div>#}
        {#                </div>#}
        {##}
        {#            </form>#}
        {#        </div>#}
    </div>
{% endblock %}

